source  ./env.sh


pid=
getPid(){
  pid=`ps -ef|grep "$jarFile"|grep -v grep|awk '{print $2}'`
  echo pid=$pid
}



warnIfStartUp(){
  getPid
  if [ $pid -gt 0 ] ;then
    echo pidwarn=$pid
    echo "警告，已经启动了一个进程${pid}，请检查日志信息的端口是否重复"
  fi
}

getPid

warnIfStartUp

